function dateFormat(date){
    let year = date.getFullYear()
    let month = date.getMonth() + 1
    let myDate = date.getDate()
    let day = date.getDay()
    let dayArr = ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"]
    let hour = date.getHours()
    let minute = date.getMinutes()
    let sec = date.getSeconds()
    return `${year}年${month}月${myDate}日${dayArr[day]} ${hour}:${minute}:${sec}`
}

exports.dateFormat = dateFormat

